//package com.example.tests;

import com.thoughtworks.selenium.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.util.regex.Pattern;

public class Dealer_DealerPopKitPage_TextVerify extends SeleneseTestCase {
	@Before
	public void setUp() throws Exception {
		selenium = new DefaultSelenium("localhost", 4444, "*chrome", "http://www.gfwfn.com/DealerLogin.php");
		selenium.start();
	}

	@Test
	 public void testUntitled() throws Exception {
		selenium.open("/DealerLogin.php");
		selenium.type("id=txtUsername", "99999");
		selenium.type("id=txtPassword", "Ldldvht9");
		selenium.click("name=submit");
		selenium.waitForPageToLoad("30000");
		selenium.click("css=img[alt=\"POP Kit\"]");
		selenium.waitForPageToLoad("30000");
		verifyTrue(selenium.isElementPresent("id=header"));
		verifyTrue(selenium.isElementPresent("id=header"));
		verifyTrue(selenium.isElementPresent("css=img[alt=\"Check out the all-new 2013 Fusion\"]"));
		verifyTrue(selenium.isElementPresent("id=header"));
		verifyTrue(selenium.isElementPresent("css=img[alt=\"Click for Live Chat\"]"));
		verifyTrue(selenium.isElementPresent("css=img[alt=\"Home\"]"));
		verifyTrue(selenium.isElementPresent("css=img[alt=\"Tools\"]"));
		verifyTrue(selenium.isElementPresent("css=img[alt=\"POP Kit\"]"));
		verifyTrue(selenium.isElementPresent("css=img[alt=\"RSVPs\"]"));
		verifyTrue(selenium.isTextPresent("exact:Note: Use of the American Idol® name and/or logo in any way other than how it has been provided in these files is strictly prohibited and subject to legal action."));
		verifyTrue(selenium.isElementPresent("link=FDAF Toolbox."));
		verifyTrue(selenium.isTextPresent("For additional customizable program elements please visit the FDAF Toolbox."));
		verifyTrue(selenium.isTextPresent("exact:Have Questions? Call 1-800-757-5754 \nAmerican Idol ®/© 19 TV Ltd. and FremantleMedia North America. 2013 All Rights Reserved. www.americanidol.com\nCharitable donations are the sole responsibility of Ford, not American Idol® or related parties."));
		verifyTrue(selenium.isTextPresent("American Idol ®/© 19 TV Ltd. and FremantleMedia North America. 2013 All Rights Reserved. www.americanidol.com\nCharitable donations are the sole responsibility of Ford, not American Idol® or related parties."));
		verifyTrue(selenium.isElementPresent("link=www.americanidol.com"));
		verifyTrue(selenium.isElementPresent("link=Official Rules"));
		verifyTrue(selenium.isElementPresent("link=Privacy Statement"));
		verifyTrue(selenium.isElementPresent("link=CA Privacy Statement"));
		verifyTrue(selenium.isTextPresent("Event Pop Kit and Support"));
		verifyTrue(selenium.isTextPresent("Go Further with Ford Night"));
		verifyTrue(selenium.isTextPresent("Go Further with Ford Night participation REQUIRES a Point of Purchase (POP) Kit for activating the Test Your Judging Skills with American Idol® Tryout App Software."));
		verifyTrue(selenium.isTextPresent("exact:Recommendation: For every 75 guests that RSVP have one Tryout station set up for the Test Your Judging Skills with American Idol® contest."));
		verifyTrue(selenium.isTextPresent("Mandatory POP with Tryout Kit\n $95 each"));
		verifyTrue(selenium.isTextPresent("Additional Tryout Kits\n $85 each"));
		verifyTrue(selenium.isTextPresent("Downloadable POP"));
		verifyTrue(selenium.isTextPresent("4' x 12' Banner"));
		verifyTrue(selenium.isTextPresent("Floor Graphic"));
		verifyTrue(selenium.isTextPresent("Wheelstand Insert"));
		verifyTrue(selenium.isTextPresent("Poster"));
		verifyTrue(selenium.isTextPresent("Hang Tag"));
		verifyTrue(selenium.isTextPresent("Cling"));
		verifyTrue(selenium.isTextPresent("Mandatory POP with Tryout Kit\n $95 each"));
		verifyTrue(selenium.isTextPresent("Additional Tryout Kits\n $85 each"));
		verifyTrue(selenium.isTextPresent("TO ORDER FROM ESTORE"));
		verifyTrue(selenium.isTextPresent("TO ORDER FROM ESTORE"));
		verifyTrue(selenium.isTextPresent("(1) 40’ x 60’ Test Your Judging Skills with American Idol® Tryout Backdrop"));
		verifyTrue(selenium.isTextPresent("(1) Specialized webcam that must be used with this program"));
		verifyTrue(selenium.isTextPresent("(1) Pair of external speakers"));
		verifyTrue(selenium.isTextPresent("(3) Event posters"));
		verifyTrue(selenium.isTextPresent("(10) Vehicle clings"));
		verifyTrue(selenium.isTextPresent("(20) Vehicle hangtags"));
		verifyTrue(selenium.isTextPresent("(1) 40’ x 60’ Test Your Judging Skills with American Idol® Tryout Backdrop"));
		verifyTrue(selenium.isTextPresent("(1) Specialized webcam that must be used with this program"));
		verifyTrue(selenium.isTextPresent("(1) Pair of external speakers"));
		verifyTrue(selenium.isElementPresent("css=h2"));
		verifyTrue(selenium.isElementPresent("css=strong"));
		verifyTrue(selenium.isElementPresent("//div[@id='content']/div[2]/p/strong[2]"));
		verifyTrue(selenium.isElementPresent("css=p"));
		verifyTrue(selenium.isElementPresent("//div[@id='content']/div[2]/p[2]"));
		verifyTrue(selenium.isElementPresent("css=h3"));
		verifyTrue(selenium.isElementPresent("css=div.popcol2 > h3"));
		verifyTrue(selenium.isElementPresent("css=div.popcol3 > h3"));
		verifyTrue(selenium.isElementPresent("link=TO ORDER FROM ESTORE"));
		verifyTrue(selenium.isElementPresent("css=div.popcol2 > p > a.storelink"));
		verifyTrue(selenium.isElementPresent("css=div.popcol2 > p > a.storelink"));
		verifyTrue(selenium.isElementPresent("link=Floor Graphic"));
		verifyTrue(selenium.isElementPresent("link=Wheelstand Insert"));
		verifyTrue(selenium.isElementPresent("link=Poster"));
		verifyTrue(selenium.isElementPresent("link=Hang Tag"));
		verifyTrue(selenium.isElementPresent("link=Cling"));
		verifyTrue(selenium.isElementPresent("css=div.popcol1 > ul"));
		verifyTrue(selenium.isElementPresent("//div[@id='content']/div[2]/div/ul/li[2]"));
		verifyTrue(selenium.isElementPresent("//div[@id='content']/div[2]/div/ul/li[2]"));
		verifyTrue(selenium.isElementPresent("css=div.popcol1 > ul > li"));
		verifyTrue(selenium.isElementPresent("//div[@id='content']/div[2]/div/ul/li[3]"));
		verifyTrue(selenium.isElementPresent("//div[@id='content']/div[2]/div/ul/li[4]"));
		verifyTrue(selenium.isElementPresent("//div[@id='content']/div[2]/div/ul/li[5]"));
		verifyTrue(selenium.isElementPresent("//div[@id='content']/div[2]/div/ul/li[6]"));
		verifyTrue(selenium.isElementPresent("css=div.popcol2 > ul > li > em"));
		verifyTrue(selenium.isElementPresent("//div[@id='content']/div[2]/div[2]/ul/li[2]"));
		verifyTrue(selenium.isElementPresent("//div[@id='content']/div[2]/div[2]/ul/li[3]"));
		verifyTrue(selenium.isElementPresent("css=div.popcol2 > h3"));
		verifyTrue(selenium.isElementPresent("css=div.popcol3 > h3"));


	}

	@After
	public void tearDown() throws Exception {
		selenium.stop();
	}
}
